package login

import (
	"6-17yk/common/proto/user"
	"6-17yk/service/server"
	"context"
)

type UserServer struct {
	user.UnimplementedUserServer
}

func NewUserServer() *UserServer {
	return &UserServer{}
}

func (s UserServer) SmsSend(ctx context.Context, req *user.SmsSendReq) (*user.SmsSendResp, error) {
	send, err := server.SmsSend(req)
	if err != nil {
		return nil, err
	}
	return send, nil
}
func (s UserServer) Login(ctx context.Context, req *user.LoginReq) (*user.LoginResp, error) {
	send, err := server.Login(req)
	if err != nil {
		return nil, err
	}
	return send, nil
}
func (s UserServer) InstitutionList(ctx context.Context, req *user.InstitutionListReq) (*user.InstitutionListResp, error) {
	send, err := server.InstitutionList(req)
	if err != nil {
		return nil, err
	}
	return send, nil
}
func (s UserServer) TeamList(ctx context.Context, req *user.TeamListReq) (*user.TeamListResp, error) {
	send, err := server.TeamList(req)
	if err != nil {
		return nil, err
	}
	return send, nil
}
func (s UserServer) DoctorList(ctx context.Context, req *user.DoctorListReq) (*user.DoctorListResp, error) {
	send, err := server.DoctorList(req)
	if err != nil {
		return nil, err
	}
	return send, nil
}
func (s UserServer) OrderCreate(ctx context.Context, req *user.OrderCreateReq) (*user.OrderCreateResp, error) {
	send, err := server.OrderCreate(req)
	if err != nil {
		return nil, err
	}
	return send, nil
}
func (s UserServer) UserDoctorList(ctx context.Context, req *user.UserDoctorListReq) (*user.UserDoctorListResp, error) {
	send, err := server.UserDoctorList(req)
	if err != nil {
		return nil, err
	}
	return send, nil
}
func (s UserServer) DoctorShow(ctx context.Context, req *user.DoctorShowReq) (*user.DoctorShowResp, error) {
	send, err := server.DoctorSow(req)
	if err != nil {
		return nil, err
	}
	return send, nil
}
